package org.whuims.indritools.optmizing;

import java.io.File;

import org.whuims.common.proper.Config;

/**
 * @author Lenovo
 *
 */
public class IndriOptmizer {
	public void optmize(){
		RuleFactory rf=new RuleFactory();
		rf.initLM_BM_Rules();
		for(String rule:rf.rules){
			//String rule, int stemMode, boolean train, int count
			QueryIniFactory qif=new QueryIniFactory(rule,QueryIniFactory.STEM_PORTER,true,1000);
			IndriExecuter ie=new IndriExecuter(Config.getProp("IndriRTPath"),qif.makeQuerys());
			ie.analyze();
		}
	}
	
	public static void main(String args[]) {
		String queryPath="d:\\IR\\irdata\\reuters\\reuter_topics_dist.ini";
		File file=new File(queryPath);
		System.out.println(file.exists());
	}
}
